<template>
  <div class="shop">
    <img class="shop__img" :src="item.imgUrl" />
    <div
      :class="{'shop__content': true, 'shop__content--bordered':!hideBorder}"
      >
      <div class="shop__content__title">{{ item.title }}</div>
      <div class="shop__content__tags">
        <span
          v-for="(innerItem, innerIndex) in item.tags"
          class="shop__content__tag"
          :key="innerIndex"
          >{{ innerItem }}
        </span>
      </div>
      <p class="shop__content__highlight">
        {{ item.desc }}
      </p>
    </div>
  </div>
</template>
<script>
export default {
  name: 'ShopInfo',
  props: ['item', 'hideBorder']
}
</script>
<style lang="scss" scoped>
@import "../style/viriables.scss";
.shop {
  display: flex;
  padding-top: 0.12rem;
  &__img {
    margin-right: 0.16rem;
    width: 0.56rem;
    height: 0.56rem;
  }
  &__content {
    flex: 1;
    padding-bottom: 0.12rem;
    &--bordered {
      border-bottom: 1px solid $content-bgColor;
    }
    &__title {
      line-height: 0.22rem;
      font-size: 0.16rem;
      color: $content-fontcolor;
    }
    &__tags {
      margin-top: 0.08rem;
      line-height: 0.18rem;
      font-size: 0.13rem;
      color: $content-fontcolor;
    }
    &__tag {
      margin-right: 0.16rem;
    }
    &__highlight {
      color: #e93b3b;
      line-height: 0.18rem;
      font-size: 0.13rem;
      margin: 0.08rem 0 0 0;
    }
  }
}
</style>
